package com.ttn.business.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.ttn.common.core.entity.business.CourseUnit;
import com.ttn.common.core.entity.business.Grade;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * 题库管理(StudentRecord)表数据库访问层
 *
 * @author makejava
 * @since 2023-01-30 15:57:40
 */

@Repository
public interface CourseUnitMapper extends BaseMapper<CourseUnit> {
    List<Grade> queryCourseUnitForGradePage(IPage<Grade> gradePage);


    Integer queryCourseUnitNumberByGrade(@Param("courseUnitIdList") List<Integer> courseUnitIdList);


}

